package com.qianfeng.gl4study.youshare.fragments;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.qianfeng.gl4study.youshare.R;
import com.qianfeng.gl4study.youshare.utils.Constants;

/**
 * Created with IntelliJ IDEA.
 * I'm glad to share my knowledge with you all.
 * User:Gaolei
 * Date:2015/2/4
 * Email:pdsfgl@live.com
 */
public class TutorialImageFragment extends Fragment {
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        Bundle arguments = getArguments();
        int layoutId = R.layout.fragment_tutorial_image_1;
        if(arguments!=null){
            layoutId = arguments.getInt(Constants.ARG_TUTORIAL_IMAGE_LAYOUT);
        }

        return inflater.inflate(layoutId, container, false);
    }
}